<?php

namespace Database\Factories;

use App\Models\FreightTemplate;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\FreightTemplateKey>
 */
class FreightTemplateKeyFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'freight_id' => FreightTemplate::inRandomOrder()->first()->id,
            'region_freight' => fake()->randomFloat(2, 0, 100),
            'region' => fake()->address(),
        ];
    }
}
